<table width="100%" border="0" cellpadding="0" cellspacing="1" class="STYLE1" bgcolor="b5d6e6">
  <tr>
    <td colspan="3" align="left" background='<%=$urr+"skin/images/bg.gif"%>'><img src='<%=$urr+"skin/icon/web_icon_015.gif"%>' width="16" height="16" />
      <span class="STYLE3"><%=@titles %></span></td>
  </tr>
</table>
<fieldset>
  <% form_for :channel, :url => { :action => "create" } do |f| %>
    <%= f.error_messages %>
    <p>
      <%= f.label :name,"频道名称" %><br />
      <%= f.text_field :name %>
    </p>
    <p>
      <%= f.label :orders,"顺序" %><br />
      <%= f.text_field :orders %>  <%= f.label "1...N的数字" %>
    </p>
    <p>
      <%= f.label :height,"高度" %><br />
      <%= f.text_field :height %>  <%= f.label "字数为单位的1...N的数字" %>
    </p>
    <p>
      <%= f.label :width,"宽度" %><br />
      <%= f.text_field :width %>  <%= f.label "字数为单位的1...N的数字" %>
    </p>
    <p>
      <%= f.label :status,"状态" %><br />
      <%= f.label "开放" %> <%= radio_button :channel, :status, "1", :checked => true %>
      <%= f.label "关闭" %> <%= radio_button :channel, :status, "0", :checked => false %>
    </p>
    <p>
      <%= f.label :is_ca,"是否分类" %><br />
      <%= f.label "否" %> <%= radio_button :channel, :is_cat, "0", :checked => true %>
      <%= f.label "是" %> <%= radio_button :channel, :is_cat, "1", :checked => false %>
    </p>
    <p>
      <%= f.label :channel_type,"频道类型" %><br />
      <%= f.label "普通频道" %> <%= radio_button :channel, :channel_type, "1", :checked => true %>
      <%= f.label "专辑频道" %> <%= radio_button :channel, :channel_type, "2", :checked => false %>
      <%= f.label "精选频道" %> <%= radio_button :channel, :channel_type, "3", :checked => false %>
    </p>
    <p>
      <%= f.label :desc,"描述" %><br />
      <%= f.text_area :desc, :cols => 35, :rows => 8 %>
    </p>
    <p>
      <%= f.submit '确定' %>       &nbsp;&nbsp;&nbsp;&nbsp;<%= button_to "返回列表", :controller => "channels",:action => "index" %>
    </p>
  <% end %>
</fieldset>
